package com.dhy.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 大忽悠
 * @create 2022/6/6 20:23
 */
public class Constants {

    //---------------课程类型常量定义---------------

    public static final String COMPULSORY_COURSE="0";
    public static final String ELECTIVE_COURSE="1";
    public static final String RANDOM_COURSE="2";

    private static final Map<String,String> COURSE_TYPE=new HashMap<>();

    static {
        COURSE_TYPE.put(COMPULSORY_COURSE,"必修课");
        COURSE_TYPE.put(ELECTIVE_COURSE,"选修课");
        COURSE_TYPE.put(RANDOM_COURSE,"公选课");
    }

    public static String getCourseName(String type){
        return type==null?null:COURSE_TYPE.get(type);
    }

    //---------------学位是否发放的常量定义---------------

    public static final Integer PUB=1;
    public static final Integer NOT_PUB=0;
}
